<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="display" uri="/WEB-INF/tags/displaytag-12.tld"%>
<%@page import="com.opensymphony.module.sitemesh.Page"%>
<html>
<head>
<meta name="tab" content="students" />
<meta name="leftbar-link" content="view-batch"/>
<meta name="decorator" content="DefaultLayout"/>
</head>
<body>
<script>

</script>
<span id="pageHeading">Batch List<hr/></span>

<s:form theme="xhtml" name="batchForm" action="/showAddBatchForm.action" method="post">

  <display:table name="batchList" id="currBatch" class="dataTable" requestURI="/viewBatches.action"
      cellspacing="0"  sort="list"  pagesize="10" export="true" 
      decorator="org.displaytag.decorator.TotalTableDecorator" >
      <display:column title="Level" property="level" />
      <display:column title="Batch Id">
        <a href="<%=request.getContextPath()%>/viewBatch.action?batchId=${currBatch.id}">
         ${currBatch.id}
        </a> 
      </display:column>
      
      <display:column title="Start Date" property="startDateStr"/>
      <display:column title="End Date" property="endDateStr"/>
      <display:column title="Day" property="dayOfWeek"/>
      <display:column title="Timing">
      	${currBatch.startTime} - ${currBatch.endTime}
      </display:column>
      <display:column title="CI Name" property="ciName" />
      <display:column title="Student Count" property="studentCount" />
	  <display:column title="Remarks" property="remarks" media="html"/>      
</display:table>


</s:form>
</body>
</html>
